<!-- @format -->

<template>
  <main class="w-full h-full flex flex-col justify-center items-center gap-3">
    <!-- <router-link to="/hz" class="p-button">汉字查询</router-link> -->
    <Button
      label="加减法"
      rounded
      class="w-80"
      size="large"
      @click="navTo('/jjf')"></Button>
    <Button
      label="百度汉语"
      rounded
      class="w-80"
      size="large"
      @click="navTo('/baiduhangyu')"></Button>
  </main>
</template>
<script setup>
  import { useRouter } from 'vue-router';
  const $router = useRouter();

  function navTo(to) {
    $router.push(to);
  }
</script>
